package com.onefinger.services;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.onefinger.domain.CustomerTable;

@Controller
@Transactional
public interface ICustomerTableController {

	@RequestMapping( "tablelist" )
	@ResponseBody
	public List<CustomerTable> list();
	
	@RequestMapping( "tableassingdevice" )
	@ResponseBody
	public CustomerTable assignDevice( Long customerTableId,  Long deviceId );

	@RequestMapping( "tableopen" )
	@ResponseBody
	public CustomerTable open( Long customerTableId );

	@RequestMapping( "tableclose" )
	@ResponseBody
	public CustomerTable close( Long customerTableId );

	@RequestMapping( "tablebydevice" )
	@ResponseBody
	public CustomerTable getCustomerTableByDevice( String deviceId );
	
}
